
$(document).ready(function(){
//    $("#news a[class]").css("background","#ccffcc");  //带有class的属性
//    $("#news a[class='hot']").css("background","#ccffcc");  //带有class的属性且值为hot
//    $("#news a[class!='hot']").css("background","#ccffcc");  //class的属性且值不是hot
//    $("#news a[href^='www']").css("background","#ccffcc");  //href值以www开头
//    $("#news a[href$='html']").css("background","#ccffcc");  //href值以html结尾
//    $("#news a[href*='k2']").css("background","#ccffcc");  //href值包含k2
      $("#news ul li:nth-child(even)").css("background","#ccffcc");
})